<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>用户发帖展示</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            background-color: #f2f2f2;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background-color: #fff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .post {
            margin-bottom: 20px;
            padding: 20px;
            background-color: #fff;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .post-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .post-title {
            font-size: 24px;
            font-weight: bold;
            margin: 0;
        }

        .post-user {
            font-size: 14px;
            color: #666;
        }

        .post-time {
            font-size: 14px;
            color: #999;
        }

        .post-content {
            font-size: 16px;
            line-height: 1.5;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="post">
            <div class="post-header">
                <h2 class="post-title">{{title}}</h2>
                <div>
                    <p class="post-user">作者: {{author}}</p>
                </div>
            </div>
            <hr>
            <p class="post-content">{{maintext}}</p>
        </div>
    </div>
</body>

</html>